<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="/js/jquery-3.1.1.min.js" type="text/javascript"></script>
    <link href="/css/bootstrap.min.css" rel="stylesheet">
    <title>login</title>
</head>
<script type="text/javascript">
    function validateCode() {
        var code = $('#code').val();
        var form = $('#form');
        $.post('/common/test/' + code, {}, function (result) {
            var statusModel = result['statusModel'];
            var code = statusModel['code'];
            alert(code);
        })
    }
</script>
<body>
    <img class="img-circle" src="/common/captcha/image"/>
    <input id="code" class="" type="text" placeholder="请输入验证码">
    <input class="btn btn-primary" type="button" onclick="validateCode()" value="登录">
</body>

</html>